<!DOCTYPE html>
<html   xmlns="http://www.w3c.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:p="http://primefaces.org/ui"
        xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head/>
    <h:body>
        <h:form id="form">
            <h:panelGrid columns="3" cellpadding="5">
                <h:outputLabel for="name" value="Name:" style="font-weight:bold"/>
                <p:inputText id="name" value="#{defaultCommandBean.text}" />
                <h:outputText value="#{defaultCommandBean.text}" id="display" />
            </h:panelGrid>
            <p:commandButton value="Button1" id="btn1" actionListener="#{defaultCommandBean.Submit1}" ajax="false"/>
            <p:commandButton value="Button2" id="btn2" actionListener="#{defaultCommandBean.Submit2}" />
            <h:commandButton value="Button3" id="btn3" actionListener="#{defaultCommandBean.Submit3}" />
            <p:defaultCommand target="btn2" />
        </h:form>
    </h:body>
</html>